package it.gma.torero.parsing.token;

import it.gma.torero.operand.VariableBinder;
import it.gma.torero.operand.VariableBinderOperand;
import it.gma.torero.parsing.Tokenizer.MalformedException;
import it.gma.torero.parsing.Tokenizer.ReturnType;

public class Variable extends Token {

	private VariableBinder binder;

	Variable(String sequence) {
		super(sequence);		
	}

	@Override
	public Token.Type getType() {
		return Type.VARIABLE;
	}

	@Override
	public ReturnType getReturnType() {
		return ReturnType.RUNTIME;
	}

	@Override
	public VariableBinderOperand asOperand() throws MalformedException {
		return new VariableBinderOperand(getSequence().replace("'", ""));
	}

}